package com.yupi.usercenter.service;

import com.yupi.usercenter.model.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;


/**
 * @author Administrator
 * @description 针对表【user(用户)】的数据库操作Service
 * @createDate 2024-10-14 05:13:49
 */
public interface UserService extends IService<User> {
    /**
     * 用户注册
     * @param userAccount
     * @param userPassword
     * @param checkPassword
     * @param planetCode
     * @return
     */
    long userRegister(String userAccount, String userPassword, String checkPassword, String planetCode);

    /**
     * 用户登录
     * @param userAccount  用户账号
     * @param userPassword 用户密码
     * @return             脱敏后用户信息
     */
    User login(String userAccount, String userPassword, HttpServletRequest request);
    User getSafetyUser(User originUser);
}
